﻿namespace MicroScheduleServer.Dtos
{
    public enum EnumJobType
    {
        /// <summary>
        /// 发起http调用
        /// </summary>
        Http,
        /// <summary>
        /// 向消息服务器发送消息
        /// </summary>
        Mq,
    }

    public enum EnumTriggerType
    {
        /// <summary>
        /// 仅执行一次
        /// </summary>
        Once,
        /// <summary>
        /// 重复执行
        /// </summary>
        Repeat,
        /// <summary>
        /// 间隔执行, 从上次结束后起算, 每隔多长时间
        /// </summary>
        Interval,
    }

    public enum EnumHttpMethod
    {
        Get,
        Post,
    }

    public enum EnumProperty
    {
        #region 年月日时分秒
        Year,
        /// <summary>
        /// 从 1 开始
        /// </summary>
        Month,
        /// <summary>
        /// 从 1 开始
        /// </summary>
        Day,
        Hour,
        Minute,
        Second,
        #endregion

        /// <summary>
        /// 周几(c#的枚举从周日(0)开始)
        /// </summary>
        DayOfWeek,
        /// <summary>
        /// 一年中的第几天, 从 1 开始
        /// </summary>
        DayOfYear,
    }

    public enum EnumOpType
    {
        Equal,
        GreaterThan,
        GreaterThanOrEqual,
        LessThan,
        LessThanOrEqual,
        NotEqual,
        BeTween,
        In,
    }
}
